package top.lixunda.ecommerce.server.auth.entity;

import lombok.Data;

/**
 * @author Xumda
 * @version time:2019/11/25 13:11
 * <p>
 * 秒嘀短信平台请求返回结果
 */
@Data
public class SmsResult {

    public static final String RESP_CODE_SUCCESS = "00000";

    private String respCode;
    private String respDesc;
    private String failCount;
    private String[] failList;
    private String smsId;

    @Data
    public class FailList {
        private String phone;
        private String respCode;
        private String respDesc;
    }

    public boolean isSuccess() {
        return RESP_CODE_SUCCESS.equals(respCode);
    }

}
